package com.yaopaikeji.constants;

public enum ResultsEnum {
    SUCCESS("1","success"),
    SYS_ERROR("0","系统错误"),
    UNKNOWN_ERROR("-1","未知错误"),
    BAD_REQUEST("400","bad request"),
    NOT_FOUND("404","not found"),

    NETWORK_ERROR("20002","net work error"),

    LOGIN_FAIL("30001","认证失败"),
    USER_NAME_NOT_FOUNT("30002","用户名不存在"),
    AUTHENTICATION_FAIL("30003","权限不足"),
    DB_ERROR("40001","数据库操作出错");

    private String code;
    private String msg;

    ResultsEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
